<%@page import="cn.school.entity.Student"%>
<%@page import="java.util.List"%>
<%@page import="cn.school.service.Service"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<!-- <form action="updateStuto.jsp" methos="post">
请输入您要修改的学生学号
<input type="text" name="stuno" required />
<input type="submit" value="修改"/> -->
</form>
<!-- 显示所有信息 -->
<table border="1px">
<tr>
	<td>学号</td>
	<td>姓名</td>
	<td>性别</td>
	<td>电话</td>
	<td>qq</td>
	<td>微信</td>
	<td>年级编号</td>
	<td>入学日期</td>
	<td>来自哪里</td>
	<td>出生日期</td>
	<td>地址</td>
	<td>密码</td>
</tr>
	<%
	Service s=new Service();
	List<Student> list=s.getAll();
	for(Student stu:list){
	%>
<tr>
	<td><%=stu.getStuno() %></td>
	<td><%=stu.getSname() %></td>
	<td><%=stu.getSex() %></td>
	<td><%=stu.getTelephone() %></td>
	<td><%=stu.getQq() %></td>
	<td><%=stu.getWechat() %></td>
	<td><%=stu.getGradeid() %></td>
	<td><%=stu.getEnterdate() %></td>
	<td><%=stu.getFromcity() %></td>
	<td><%=stu.getBirthday() %></td>
	<td><%=stu.getAddress() %></td>
	<td><%=stu.getPass() %></td>
	<td>
	
	<a href="updateStudo.jsp?stuno=<%=stu.getStuno() %>">修改</a>
	<a href="student2.jsp?stuno=<%=stu.getStuno() %>">增加</a>
	<a href="deleteStudent.jsp?stuno=<%=stu.getStuno() %>">删除</a>
	</td>
</tr>
<%} %>
</table>
</body>
</html>